<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="WUKONG 1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path_hgs']; ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_var['ecs_css_path_users']; ?>" rel="stylesheet" type="text/css" />


<?php echo $this->smarty_insert_scripts(array('files'=>'jquery-1.7.1.min.js,jquery.json.js,transport.js,hgsflow.js,hgsstyle.js,shopping_flow.js,hgscommon.js,region.js,utils.js')); ?>
<script> var currentHour = <?php echo $this->_var['hour']; ?>; </script>
</head>
 
<body>
<div class="main">

	<div class="dw_head"></div>
	<div class="dw_nav" name="dw_nav" id="dw_nav"></div>
	<div class="mainbg" name="MainName">
<?php echo $this->fetch('library/page_header.lbi'); ?>




   
<div class="product" style="font-size:14px; color:#676767;">

   <?php if ($this->_var['step'] == "cart"): ?>
        <div class="zhifu_img_one"></div>
   <?php elseif ($this->_var['step'] == "checkout"): ?>
         <div class="zhifu_img_two"></div>
   <?php endif; ?>
   
    
    <?php $this->assign('show_fav','block'); ?>
    <?php if ($this->_var['favourable_exist_in_cart'] == '1'): ?> <?php $this->assign('show_fav','none'); ?> <?php endif; ?>
    <div id="cart_favourables" style="display:<?php echo $this->_var['show_fav']; ?>">
        <?php echo $this->fetch('library/favourables.lbi'); ?>
    </div>  

	<?php if ($this->_var['step'] == "cart"): ?>
    <div id="big_cart">
		<?php echo $this->fetch('library/big_cart.lbi'); ?>
    </div>
	<?php endif; ?>
	
  
	<?php if ($this->_var['step'] == "checkout"): ?>
		<script>
		//在结算页时迷你购物车隐藏mike
		$(".shopping_car_top").hide();
		$(".shopping_car_main").hide();

        
        <?php if ($_SESSION['user_id'] == 0): ?>isAnoymous = true;<?php endif; ?>

		</script>
		<div class="zhifu_title_name"><span style="float:left;">确认订单</span></div>
		<form action="flow.php" method="post" name="theForm" id="theForm" autocomplete="off">
   
		
		<?php echo $this->fetch('library/consignee.lbi'); ?>
    
		
		<?php echo $this->fetch('library/shipping_method.lbi'); ?>
    
			

	<div class="juankazhekou">
		<?php if ($_SESSION['user_id'] == 0): ?>

        <div class="peisong_title_name">
            <span class="fold-btn" name="peisongdizhi_name_3s">优惠信息</span>
        </div> 
		<div class="peisongfangshi_name">请先登录才能使用优惠</div>
		<?php else: ?>
		<div class="peisong_title_name clearfix">
            <span class="fold-btn">优惠信息</span>
            <span class="xiugai_zhifuxinxi benefitTab ctl-btn">修改</span>
        </div> 
		
        <div class="youhuixinxi" id="benefitInfo" style="display:none;">
                
        <div class="peisong_xiugai_address benfit-node">            
            <input type="radio" id ="couponEdit" name="voucher" value="1" /> 优惠劵
        </div>
        <div class="youhuijuan benfit-node" id="couponInfo">
            <div class="users_jihuolipin">
                <div class="qiyegoumai_input_left">输入卡号</div>
                <div class="qiyegoumai_input_right_pay"><input type="type" name="bonus_sn" id="bonus_sn" value="" maxlength="50" /></div>
            </div>
                 
            <div class="users_jihuolipin">
                <div class="qiyegoumai_input_left">输入验证码</div>
                <div class="qiyegoumai_input_right_yanzheng">
                    <div class="yanzheng_kuang"><input type="text" name="bonus_captcha" id="bonus_captcha" maxlength="4"/></div>
                    <div class="login_yanzheng_right">
                        <div class="login_yanzheng_right_img"><img src="captcha.php?is_login=1&<?php echo $this->_var['rand']; ?>" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?captcha_activate=1&'+Math.random()" id="bonus_image_captcha"/></div>
                        <div class="login_yanzheng_right_txt" onclick="document.getElementById('bonus_image_captcha').src = 'captcha.php?captcha_activate=1&'+Math.random(); return false;">看不清楚</div>   
                    </div>
                    <div class="users_jihuo_btn" onclick="activateBonus();"></div> 
                </div>  
            </div>	
                         
            <div class="users_bianji_inputs" style="margin-top:15px; display:inline;">
                <div class="users_bianji_inputs_left">可用优惠劵</div>				
				 <?php echo $this->fetch('library/bonus_list.lbi'); ?>
            </div>
			
			<div class="youhuianniukuang">
			<div class="juanka_btn" id="couponConfirm" onclick="changeBonus()" style="margin-left:100px; margin-top:15px; display:inline;"></div></div>
        </div>		
		<div id="bonusAmount" class="benefit-text"></div>
        
        <div class="peisong_xiugai_address benfit-node">
            <input type="radio" name="voucher" value="2" /> 礼品卡
        </div>
        
        <div class="lipinka benfit-node" id="giftcard_info">

            <div class="users_jihuolipin">
                <div class="qiyegoumai_input_left">输入卡号</div>
                <div class="qiyegoumai_input_right_pay"><input type="type" name="giftcard_sn" id="giftcard_sn" value="" maxlength="50" /></div>
            </div>
                 
            <div class="users_jihuolipin">
                <div class="qiyegoumai_input_left">输入验证码</div>
                <div class="qiyegoumai_input_right_yanzheng">
                    <div class="yanzheng_kuang"><input type="text" name="giftcard_captcha" id="giftcard_captcha" maxlength="4"/></div>
                    <div class="login_yanzheng_right">
                        <div class="login_yanzheng_right_img"><img src="captcha.php?is_login=1&<?php echo $this->_var['rand']; ?>" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?captcha_activate=1&'+Math.random()" id="giftcard_image_captcha"/></div>
                        <div class="login_yanzheng_right_txt" onclick="document.getElementById('giftcard_image_captcha').src = 'captcha.php?captcha_activate=1&'+Math.random(); return false;">看不清楚</div>   
                    </div>
                    <div class="users_jihuo_btn" onclick="activateGiftcard();"></div> 
                </div>  
            </div>
        
            <?php echo $this->fetch('library/giftcard_list.lbi'); ?>  
        </div> 
        <div id="giftCardAmount" class="benefit-text"></div>
                            
        <div class="peisong_xiugai_address benfit-node">
		<img src="./themes/default/images/plus.jpg" id="checkoutIntegralPlus" onclick="checkIntegral()" />
		<img src="./themes/default/images/minus.jpg" id="checkoutIntegralMinus" onclick="checkIntegral()" style="display:none" />
			积分兑换
        
        </div>					
        <Div class="jifenduihuan benfit-node" id="integralInfo" style="display:none"> 
            <div class="juanka_input">
            	<div class="juanka_input_left">
                    积分兑换：使用
                    <input name="integral" type="text" id="ECS_INTEGRAL" value="<?php echo empty($this->_var['order']['integral']) ? '0' : $this->_var['order']['integral']; ?>" size="10" />
                    积分，
					<input type="hidden" id="chosenIntegral" value="<?php echo empty($this->_var['order']['integral']) ? '0' : $this->_var['order']['integral']; ?>"/>
                    <input type="hidden" id="integralRight" value="1" />
                    可抵消<span id="integralToMoney" style="color:#509600;"></span>
                    <span id="ECS_INTEGRAL_NOTICE" ></span> 
            	</div>
                <div class="juanka_input_right">
                    <div onclick="changeIntegral()" class="juanka_tijiao">
                    	<img src="themes/default/images/shiyong.jpg" />
                    </div>
                </div>
            </div>
            <div class="juanka_one_shuoming">
            本次最多可使用使用积分<span><?php echo $this->_var['order_max_integral']; ?></span>，
            您目前的积分值为:<span style="color:#509600;"><?php echo empty($this->_var['your_integral']) ? '0' : $this->_var['your_integral']; ?></span> 
            </div>
        </Div>        
		<div id="integralAmount" class="benefit-text"></div>
		<div class="youhui_btn benfit-node" id="benefitConfirm"></div>
        </div>
        <div class="confirmText" id="benefitInfoText" origin="请先确认配送方式">请先确认配送方式</div>
		<?php endif; ?>
	</div>
    
		
        
		<?php echo $this->fetch('library/invoice_info.lbi'); ?>
		
		
		<?php echo $this->fetch('library/pay_type.lbi'); ?>
		
		
		<?php echo $this->fetch('library/goods_account_info.lbi'); ?>
		
			
			<div  id="ECS_ORDERTOTAL" class="fapiao_jiesuan">
				<?php echo $this->fetch('library/order_total_new.lbi'); ?>
			</div>
            <div class="tijiao_form">
                <!--  <div class="tijiao_tishi">配送地址尚未填写</div> sshi 去掉提示-->
                <input type="hidden" name="step" value="done" />
                <!-- <div class="tijiao_btn"><input name ="submit" type="image" src="themes/default/images/tijiao.jpg"/></div> -->
                <div class="tijiao_form_main">
                	<div class="tijiao_form_txt">备注</div>
                    <div class="tijiao_form_input"><input name="postscript" type="text" maxlength="40"/></div>
                </div>
				<div class="tijiao_btn" onclick="checkOrderFormWWZ()"></div>
            </div>
			
		</form>
	<?php endif; ?>
		  
		 <?php if ($this->_var['step'] == 'done'): ?>
			<?php echo $this->fetch('library/order_done.lbi'); ?>
		<?php endif; ?>
  </div>
  

  
</div>  


<div class="mobile_phone_binding">
	
</div>


</div>  

<?php echo $this->fetch('library/page_footer.lbi'); ?>


</body>

</html>
